/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import java.util.ArrayList;
import java.util.Map;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

/**
 *
 * @author Leonardo Lino
 */
@ManagedBean
@RequestScoped
public class ListaTeatros {
    
    private String test;
    private ArrayList<String> lista;

    /**
     * Creates a new instance of ListaTeatros
     */
    public ListaTeatros() {
        
    }
    
    public void preRender(){
        gerarTeatros();
    }
    
  public String submit(Integer param) {
    System.out.println("Submit using value " + param);
    return null;
}
   
    
    private void gerarTeatros(){
        lista = new ArrayList<String>();
        for (int i = 1; i< 700; i++){
            lista.add("teatro"+ i);
        }
    }

    public ArrayList<String> getLista() {
        return lista;
    }
    
    

    public void setLista(ArrayList<String> lista) {
        this.lista = lista;
    }

    public String getTest() {
        return test;
    }

    public void setTest(String test) {
        this.test = test;
    }
    
    
    
}
